<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../WEB-INF/views/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Web Socket JSP</title>
<script type="text/javascript">
	$(function($) {
		socketHandler();
	})
	function socketHandler() {
		var socketUtil = new SocketUtils();
		
        var websocket = s.getSocketConn("/webSocketServer");
        websocket.onopen = function(evnt) {

        }
        websocket.onmessage = function(evnt) {
        	console.log(evnt.data)
            var data = JSON.parse(evnt.data);
        	
            // window.location.reload();

        }
        websocket.onerror = function(evnt) {
        }
        websocket.onclose = function(evnt) {
        }
	}
</script>
</head>
<body>
	<div id="test">测试</div>
</body>
</html>